<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<div class="easyui-layout" fit="true">
  <div region="center" style="padding:1px;">
  <t:datagrid name="zySpareRecordList" fitColumns="false" title="备件更换记录" actionUrl="zySpareRecordController.do?datagrid" idField="id" fit="true" queryMode="group">
   <t:dgCol title="主键"  field="id"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="设备SN"  field="equipmentSn"    queryMode="single" query="true" width="100"></t:dgCol>
   <t:dgCol title="影院"  field="cinemaId.name"    queryMode="single"  query="true" width="190"></t:dgCol>
   <t:dgCol title="备件描述"  field="spareDesc.typeDesc"    queryMode="single"  width="100"></t:dgCol>
   <t:dgCol title="旧备件备件号"  field="oldSpareNo"    queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="旧备件序列号SN"  field="oldSpareSn"    queryMode="single" query="true" width="120"></t:dgCol>
   <t:dgCol title="更换日期"  field="replaceDate"  formatter="yyyy-MM-dd"  queryMode="single"  width="90"></t:dgCol>
   <t:dgCol title="新备件备件号"  field="newSpareNo"    queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="新备件序列号SN"  field="newSpareSn"    queryMode="single" query="true" width="120"></t:dgCol>
   <t:dgCol title="更换原因"  field="replaceReason"    queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="备注"  field="remark"    queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="关联服务单据号"  field="relationServiceNo"    queryMode="single" query="true" width="120"></t:dgCol>
   <t:dgCol title="创建人名称"  field="createName"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="创建人登录名称"  field="createBy"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="创建日期"  field="createDate" formatter="yyyy-MM-dd" hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="更新人名称"  field="updateName"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="更新人登录名称"  field="updateBy"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="更新日期"  field="updateDate" formatter="yyyy-MM-dd" hidden="true"  queryMode="single"  width="120"></t:dgCol>
<%--   <t:dgCol title="操作" field="opt" width="100"></t:dgCol>--%>
<%--   <t:dgDelOpt title="删除" url="zySpareRecordController.do?doDel&id={id}" />--%>
   <t:dgToolBar title="导入" icon="icon-put" operationCode="zySpareRecordAdd" funname="importExcel"></t:dgToolBar>
  </t:datagrid>
  </div>
 </div>
<script type="text/javascript">
 $(document).ready(function(){
	//给时间控件加上样式
	$("#zySpareRecordListtb").find("input[name='createDate']").attr("class","Wdate").attr("style","height:20px;width:90px;").click(function(){WdatePicker({dateFmt:'yyyy-MM-dd'});});
	$("#zySpareRecordListtb").find("input[name='updateDate']").attr("class","Wdate").attr("style","height:20px;width:90px;").click(function(){WdatePicker({dateFmt:'yyyy-MM-dd'});});
 });
 
//导入
function importExcel() {
	createdetailwindow('基础数据导入', 'uploadChangeRecordController.do?uploadFile',470,150)
}

</script>